package com.delos.rbac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.delos.rbac.entity.RoleResourceDO;
import org.springframework.stereotype.Repository;

import java.util.Set;

/**
 * @author zouyaowen
 * @date 2020-06-28
 */
@Repository
public interface RoleResourceMapper extends BaseMapper<RoleResourceDO> {

    /**
     * 获取角色与资源的关联关系
     *
     * @param resourceId 资源唯一标识
     * @return 角色资源关联关系
     */
    Set<RoleResourceDO> getByResourceId(Long resourceId);
}
